#!/usr/bin/env python
#auther: liushiju
#date: 2021-10-25
#descript: 将文件中所有单词的首字母变成大写
from __future__ import print_function

with open('data.txt') as inf,open('out.txt','w') as outf:
    for line in inf:
        print(*[ word.capitalize() for word in line.split()], file=outf)
        # outf.write(" ".join([word.capitalize() for word in line.split()]))
        # outf.write("\n")

